package com.sy.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@ApiModel("续费")
@Data
public class Renewal {
    @ApiModelProperty(value = "企业id", required = true)
    @NotNull(message = "企业id不能为空")
    @Min(value = 1, message = "请输入正确的企业id")
    int eid;
    @ApiModelProperty(value = "续费时间(月)", required = true)
    int month;
    @ApiModelProperty(value = "续费金额", required = true)
    @Min(value = 1, message = "续费金额最小1元")
    double money;
}
